home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / C / LIB / DESK / CORE / Desk / h / BackTrace next >
Text File  |  1996-08-19  |  1KB  |  30 lines

  1.  
  2. #ifndef __Desk_BackTrace_h
  3. #define __Desk_BackTrace_h
  4. #include <stdio.h>
  5. #include "kernel.h"
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. void Desk_BackTrace_SupportCurrentFrame(_kernel_unwindblock *frame);
  10. void Desk_BackTrace_OutputToStdErr(void);
  11. void Desk_BackTrace_OutputToStreamWithPrefix(FILE* stream, const char* prefix);
  12. typedef int (*Desk_backtrace_printf_fn)(void* reference, const char* format, ...);
  13. void Desk_BackTrace_OutputToFFunctionWithPrefix(Desk_backtrace_printf_fn fn, void* reference, const char* prefix);
  14. extern unsigned int Desk_BackTrace_GetPC(void);
  15. extern unsigned int Desk_BackTrace_GetSL(void);
  16. #define Desk_BackTrace_GetPC2() ((void*) (Desk_BackTrace_GetPC() & (0x3fffffc)))
  17. int Desk_BackTrace_GetNestingDepth(void);
  18. typedef struct {
  19. int n;
  20. unsigned int** functions;
  21. }
  22. Desk_BackTrace_functionlist;
  23. #define Desk_BackTrace_MAXFNS 256
  24. const Desk_BackTrace_functionlist* Desk_BackTrace_GetCurrentFunctions(void);
  25. const char* Desk_BackTrace_GetFunctionName(const void* ptr);
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. #endif
  30.